package com.syni.mdd.yhd.common.all.controller.protect.businessAdmin;

/**
 * @className BmsBusinessController
 * @description TOO
 * @Author cfx
 * @DATE 2019/4/15 14:25
 * @VERSION 1.0
 **/

import com.syni.mdd.sjb.common.component.utils.common.annotations.CheckParams;
import com.syni.mdd.yhd.common.all.service.BmsBusinessService;
import com.syni.mdd.yhd.common.all.service.BmsUserBusinessService;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/businessAdmin")
public class BmsBusinessAdminController {
    @Autowired
    BmsUserBusinessService bmsUserBusinessService;

    @Autowired
    BmsBusinessService bmsBusinessService;


    @PostMapping("/getMyBusinessList")
    @CheckParams(checkAuth = true)
    public Map<String,Object> getMyBusinessList(@RequestBody ParamsMap paramsMap){
        return bmsUserBusinessService.getMyBusinessList(paramsMap);
    }

}
